package service

import (
	"log"
	"mygin_project/model"
	"mygin_project/param"
	"mygin_project/tool"
)

type MemberService struct {
	*tool.Orm
}

func (service *MemberService) SmsLogin(param param.SmsLoginParam) (*model.Member, error)  {
	var member model.Member
	_, err := service.Where("mobile=?", param.Phone).Get(&member)
	if err != nil {
		return nil, err
	}

	log.Printf("%v", member)

	return nil, nil
}
